package com.xuebank.nfe.nfecar.beas

import android.graphics.Color
import android.support.v4.content.ContextCompat
import android.view.MenuItem
import com.xuebank.nfe.nfecar.R

/**
 * user: luona
 * date: 2017/7/27.
 * description:${desc}
 */
fun BaseTitleBarActivity.initTitleBarStyle() {
    titleBar?.setTitleTxtColor(ContextCompat.getColor(this, R.color.text_title))
    titleBar?.setBackgroundByColor(Color.WHITE)
}

fun MenuItem.getBackgroundColor(): Int {
    return Color.BLUE
}

fun MenuItem.getTextColor(): Int {
    return Color.WHITE
}